package com.huang.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huang.canal.entity.ESbean;
import com.huang.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huang.eduservice.entity.frontVo.CourseFrontVo;
import com.huang.eduservice.entity.vo.CourseInfVo;
import com.huang.eduservice.entity.vo.CoursePublishVo;
import com.huang.eduservice.entity.vo.CourseWebVo;
import com.hunag.utils.orderVo.EduCourseOrder;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-03-21
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseVo(CourseInfVo courseInfVo);


    CourseInfVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfVo courseInfVo);

    CoursePublishVo getPublishVo(String id);

    void removeCourse(String id);

    List<EduCourse> getCouIndex();

    Map<String, Object> getCourseFrontList(Page<EduCourse> page1, CourseFrontVo courseFrontvO);

    CourseWebVo getFrontCourseInfo(String courseId);

    List<EduCourse> getindexAllCourse();

    List<ESbean> getTotal();

    ESbean getEsBean(String id);
    List<ESbean> getEsbeanByteacherId(String id);

    List<EduCourseOrder> getBuyCourseList(List<String> list);
}
